﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MazeModel
{
    public class MazeTreasure : MazeObject
    {
        public int points;
        public bool collected;

        public MazeTreasure(int i, int j, int pts)
            : base(i, j)
        {
            this.points = pts;
            this.collected = false;
        }

        public TreasureType TreasureType
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public int getCollected()
        {
            this.collected = true;
            int temp = this.points;
            this.points = 0;
            return temp;
        }
    }
}
